home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / comm2 / termsorc.lha / Extras / Source / term-source.lha / PreInclude.h < prev    next >
C/C++ Source or Header  |  1995-09-26  |  8KB  |  289 lines

  1. /*
  2. **    PreInclude.h
  3. **
  4. **    Definition file for precompiled header file
  5. **
  6. **    Copyright © 1990-1995 by Olaf `Olsen' Barthel
  7. **        All Rights Reserved
  8. */
  9.  
  10.     /* System includes (just a few). */
  11.  
  12. #include <intuition/intuitionbase.h>
  13. #include <intuition/gadgetclass.h>
  14. #include <intuition/imageclass.h>
  15. #include <intuition/sghooks.h>
  16. #include <intuition/cghooks.h>
  17. #include <intuition/classes.h>
  18. #include <intuition/icclass.h>
  19.  
  20. #include <datatypes/pictureclass.h>
  21. #include <datatypes/soundclass.h>
  22.  
  23. #include <workbench/workbench.h>
  24.  
  25. #include <libraries/commodities.h>
  26. #include <libraries/translator.h>
  27. #include <libraries/amigaguide.h>
  28. #include <libraries/gadtools.h>
  29. #include <libraries/iffparse.h>
  30.  
  31. #include <graphics/videocontrol.h>
  32. #include <graphics/gfxmacros.h>
  33. #include <graphics/gfxbase.h>
  34. #include <graphics/rpattr.h>
  35. #include <graphics/scale.h>
  36.  
  37. #include <libraries/locale.h>
  38. #include <libraries/asl.h>
  39.  
  40. #include <devices/inputevent.h>
  41. #include <devices/clipboard.h>
  42. #include <devices/narrator.h>
  43. #include <devices/console.h>
  44. #include <devices/conunit.h>
  45. #include <devices/serial.h>
  46. #include <devices/audio.h>
  47. #include <devices/input.h>
  48. #include <devices/timer.h>
  49.  
  50. #include <hardware/intbits.h>
  51. #include <hardware/dmabits.h>
  52. #include <hardware/custom.h>
  53. #include <hardware/cia.h>
  54. #include <hardware/blit.h>
  55.  
  56. #include <dos/filehandler.h>
  57. #include <dos/dosextens.h>
  58. #include <dos/datetime.h>
  59. #include <dos/doshunks.h>
  60. #include <dos/dostags.h>
  61. #include <dos/rdargs.h>
  62. #include <dos/dosasl.h>
  63. #include <dos/var.h>
  64.  
  65. #include <exec/execbase.h>
  66. #include <exec/devices.h>
  67. #include <exec/memory.h>
  68. #include <exec/errors.h>
  69.  
  70. #include <prefs/screenmode.h>
  71. #include <prefs/prefhdr.h>
  72. #include <prefs/serial.h>
  73. #include <prefs/font.h>
  74.  
  75. #include <utility/date.h>
  76.  
  77. #include <clib/macros.h>
  78.  
  79. #include <rexx/rxslib.h>
  80. #include <rexx/errors.h>
  81.  
  82.     /* Function prototypes. */
  83.  
  84. #include <clib/commodities_protos.h>
  85. #include <clib/translator_protos.h>
  86. #include <clib/rexxsyslib_protos.h>
  87. #include <clib/amigaguide_protos.h>
  88. #include <clib/intuition_protos.h>
  89. #include <clib/datatypes_protos.h>
  90. #include <clib/graphics_protos.h>
  91. #include <clib/gadtools_protos.h>
  92. #include <clib/iffparse_protos.h>
  93. #include <clib/diskfont_protos.h>
  94. #include <clib/console_protos.h>
  95. #include <clib/utility_protos.h>
  96. #include <clib/keymap_protos.h>
  97. #include <clib/layers_protos.h>
  98. #include <clib/locale_protos.h>
  99. #include <clib/timer_protos.h>
  100. #include <clib/alib_protos.h>
  101. #include <clib/icon_protos.h>
  102. #include <clib/exec_protos.h>
  103. #include <clib/dos_protos.h>
  104. #include <clib/asl_protos.h>
  105. #include <clib/wb_protos.h>
  106.  
  107.     /* Include the following direct library interface definitions. */
  108.  
  109. #ifndef DEBUG
  110. #include <pragmas/console_pragmas.h>
  111. #include <pragmas/utility_pragmas.h>
  112. #include <pragmas/keymap_pragmas.h>
  113. #include <pragmas/layers_pragmas.h>
  114. #include <pragmas/timer_pragmas.h>
  115. #include <pragmas/exec_pragmas.h>
  116. #endif    /* DEBUG */
  117.  
  118.     /* Standard `C' includes. */
  119.  
  120. #include <string.h>
  121. #include <stdarg.h>
  122. #include <stdlib.h>
  123. #include <stddef.h>
  124.  
  125. #include <dos.h>
  126.  
  127.     /* Special character codes. */
  128.  
  129. #define XOF '\21'
  130. #define XON '\23'
  131.  
  132. #define BEL '\a'
  133. #define VTB '\v'
  134. #define TAB '\t'
  135. #define BKS '\b'
  136. #define ENT '\n'
  137. #define RET '\r'
  138. #define ESC '\033'
  139. #define DEL '\177'
  140. #define FFD '\f'
  141. #define CAN '\030'
  142. #define SUB '\032'
  143. #define ENQ '\005'
  144. #define SI  '\016'
  145. #define SO  '\017'
  146.  
  147.     /* Internally handled control keys. */
  148.  
  149. #define CUP 150
  150. #define CDN 151
  151. #define CFW 152
  152. #define CBK 153
  153.  
  154. #define FN1 128
  155. #define FN2 129
  156. #define FN3 130
  157. #define FN4 131
  158. #define FN5 132
  159. #define FN6 133
  160. #define FN7 134
  161. #define FN8 135
  162. #define FN9 136
  163. #define F10 137
  164.  
  165. #define HLP 149
  166.  
  167.     /* Control sequence introducer. */
  168.  
  169. #define CSI 155
  170.  
  171.     /* Standard IFF chunk types. */
  172.  
  173. #define ID_8SVX    MAKE_ID('8','S','V','X')    /* Eight bit sampled voice. */
  174. #define ID_VHDR    MAKE_ID('V','H','D','R')    /* Voice header. */
  175. #define ID_CHAN MAKE_ID('C','H','A','N')    /* Sound channel information. */
  176. #define ID_FTXT    MAKE_ID('F','T','X','T')    /* Formatted text. */
  177. #define ID_CHRS    MAKE_ID('C','H','R','S')    /* Character data. */
  178. #define ID_BODY    MAKE_ID('B','O','D','Y')    /* Generic data body chunk. */
  179.  
  180.     /* `term' private chunk types. */
  181.  
  182. #define ID_DATE    MAKE_ID('D','A','T','E')    /* Date and time information. */
  183. #define ID_NAME    MAKE_ID('N','A','M','E')    /* Date and time patterns. */
  184. #define ID_DIAL    MAKE_ID('D','I','A','L')    /* Number of phonebook entries. */
  185. #define ID_FAST    MAKE_ID('F','A','S','T')    /* Fast! macro settings. */
  186. #define ID_TRAP    MAKE_ID('T','R','A','P')    /* Trap command. */
  187. #define ID_SEQN    MAKE_ID('S','E','Q','N')    /* Trap sequence. */
  188. #define ID_TRST MAKE_ID('T','R','S','T')    /* Trap settings. */
  189. #define ID_HOTK    MAKE_ID('H','O','T','K')    /* Hotkey settings. */
  190. #define ID_KEYS    MAKE_ID('K','E','Y','S')    /* Function key settings. */
  191. #define ID_PHON    MAKE_ID('P','H','O','N')    /* Phonebook data. */
  192. #define ID_PREF    MAKE_ID('P','R','E','F')    /* Preferences data chunk. */
  193. #define ID_PSWD    MAKE_ID('P','S','W','D')    /* Password entry. */
  194. #define ID_RECV    MAKE_ID('R','E','C','V')    /* Translation table data (receiver side). */
  195. #define ID_SEND    MAKE_ID('S','E','N','D')    /* Translation table data (sender side). */
  196. #define ID_TRNS    MAKE_ID('T','R','N','S')    /* Translation table data (master table). */
  197. #define ID_SPEK    MAKE_ID('S','P','E','K')    /* Speech settings. */
  198. #define ID_TERM    MAKE_ID('T','E','R','M')    /* `term' data chunk. */
  199. #define ID_VERS    MAKE_ID('V','E','R','S')    /* Version identification. */
  200. #define ID_WIND    MAKE_ID('W','I','N','D')    /* Fast! macro window size and position. */
  201. #define ID_SOUN    MAKE_ID('S','O','U','N')    /* Sound settings. */
  202. #define ID_WINF    MAKE_ID('W','I','N','F')    /* Window position/size information. */
  203. #define ID_GRUP MAKE_ID('G','R','U','P')    /* Grouping information. */
  204.  
  205.     /* `term' configuration and phonebook file chunk types. */
  206.  
  207. #define ID_SERL    MAKE_ID('S','E','R','L')    /* Serial settings. */
  208. #define ID_MODM    MAKE_ID('M','O','D','M')    /* Modem settings. */
  209. #define ID_COMD    MAKE_ID('C','O','M','D')    /* Command settings. */
  210. #define ID_SCRN    MAKE_ID('S','C','R','N')    /* Screen settings. */
  211. #define ID_TRML    MAKE_ID('T','R','M','L')    /* Terminal setting. */
  212. #define ID_PATH    MAKE_ID('P','A','T','H')    /* Path settings. */
  213. #define ID_MISC    MAKE_ID('M','I','S','C')    /* Misc settings. */
  214. #define ID_CLIP    MAKE_ID('C','L','I','P')    /* Clip settings. */
  215. #define ID_CPTR    MAKE_ID('C','P','T','R')    /* Capture settings. */
  216. #define ID_FILE    MAKE_ID('F','I','L','E')    /* File settings. */
  217. #define ID_EMLN    MAKE_ID('E','M','L','N')    /* Emulation settings. */
  218. #define ID_XFER    MAKE_ID('X','F','E','R')    /* Transfer settings. */
  219. #define ID_XLNM    MAKE_ID('X','L','N','M')    /* Translation file name. */
  220. #define ID_MFNM    MAKE_ID('M','F','N','M')    /* Macro file name. */
  221. #define ID_CRNM    MAKE_ID('C','R','N','M')    /* Cursor file name. */
  222. #define ID_FMNM    MAKE_ID('F','M','N','M')    /* Fast macro file name. */
  223.  
  224.     /* Use a simple address trick instead of the predefined
  225.      * address in amiga.lib.
  226.      */
  227.  
  228. #ifndef custom
  229. #define custom (*(struct Custom *)0xDFF000L)
  230. #endif    /* custom */
  231.  
  232.     /* These seem to have got lost... */
  233.  
  234. #ifndef MTYPE_APPWINDOW
  235. #define MTYPE_APPWINDOW    7
  236. #endif    /* MTYPE_APPWINDOW */
  237.  
  238. #ifndef MTYPE_APPICON
  239. #define MTYPE_APPICON    8
  240. #endif    /* MTYPE_APPICON */
  241.  
  242. #ifndef MTYPE_APPMENUITEM
  243. #define MTYPE_APPMENUITEM    9
  244. #endif    /* MTYPE_APPMENUITEM */
  245.  
  246.     /* Cast the DICE... */
  247.  
  248. #ifdef _DCC
  249. #define __saveds    __geta4
  250. #define __stdargs    __stkargs
  251. #define __asm
  252. #endif    /* _DCC */
  253.  
  254.     /* Single precision boolean value. */
  255.  
  256. typedef char BOOLEAN;
  257.  
  258.     /* Include string IDs. */
  259.  
  260. #include "termStrings.h"
  261.  
  262.     /* Include the OwnDevUnit definitions. */
  263.  
  264. #include "OwnDevUnit.h"
  265.  
  266.     /* Include the XPR definitions. */
  267.  
  268. #include "xproto.h"
  269.  
  270.     /* Include the XEM definitions. */
  271.  
  272. #include "xem.h"
  273.  
  274.     /* Include the rendezvous interface definitions. */
  275.  
  276. #include "Rendezvous.h"
  277.  
  278.     /* If desired, include the global definitions and prototypes as well. */
  279.  
  280. #ifdef INCLUDEALL
  281. #include "termGlobal.h"
  282. #include "termARexxAttributes.h"
  283. #include "termARexxGlobal.h"
  284. #endif    /* INCLUDEALL */
  285.  
  286.     /* The user interface definitions. */
  287.  
  288. #include "gtlayout.h"
  289.